<!-- 收藏 -->
<link rel="stylesheet" href="/css/otherInformation.css">
<div class="main layui-clear">
	<div class="fly-main layui-clear">
		<div class="wrap clearfix">
			<#include "/apps/user/otheruser/otherusermenu.html">
			<div class="home-right" id="commenttopic">
				<div class="content" style="padding-top: 10px;">
					<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
					  <#include "/apps/user/otheruser/collectionmenu.html">
					  <div class="layui-tab-content" style="height: 100px;">
					    <div class="layui-tab-item layui-show" style="padding-top: 20px;">
						    <ul>
						    	<#if topicList?? && topicList.content??>
						    	<#list topicList.content as topic>
								<li class="post-list">
									<div class="post author pc-display-none">
										<img src="/${topic.user.fileurl}"/>
										<p>${topic.username!}</p>
										<p class="time">${topic.createtime?string('yyyy-MM-dd HH:mm:ss')}</p>
									</div>
									<a href="/topic/detail/${topic.id!''}.html">
										<p class="post title"><span class="blockname">[${topic.block.blockname!''}]</span>${topic.title!}</p>
										<!-- <div class="post type">教程</div> -->
										<div class="post mobile-display-none">
											<span>查看 ${topic.views!0}</span><span style="margin:0 5px;">/</span><span>回复 ${topic.answers!0}</span>
										</div>
										<div class="post auther mobile-display-none">
											<p>${topic.username!}</p>
											<p>${topic.createtime?string('yyyy-MM-dd HH:mm:ss')}</p>
										</div>
									</a>
									<div class="post pc-display-none mobile-block">
										<span class="blockParentname">[${topic.blockparent.blockname!''}]</span>
										<span>查看 ${topic.views!0}</span><span style="margin-left: 0.3rem;"></span><span>回复 ${topic.answers!0}</span>
									</div>
								</li>
								</#list>
								<#else>
								<li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有收藏任何帖子</i></li>
								</#if>
							</ul>
						</div>
					    
					  </div>
					</div> 
					<div style="text-align: center" class="front-desk">
				        <div class="laypage-main" id="topicpages"></div>
				    </div>
				</div>
				
			</div>
			
		</div>
	</div>
<script>
	layui.use(['element','laypage'], function(){
		  var element = layui.element();
		  
		  var laypage = layui.laypage;
		  laypage({
			    cont: 'topicpages'
			    ,first:'首页'
			    ,last:'末页'
			    ,pages: ${topicList.totalPages!'0'}
			    ,curr:${topicList.number+1}
			    ,skin: '#32c24d'
			    ,jump:function(obj, first){
			    	var curr = obj.curr;
			    	if(!first){
			    		location.href = '/user/collection/${curruser.id}.html?userid=${curruser.id!''}&p='+curr+"<#if RequestParameters['q']?? && RequestParameters['q'] != ''>&q=${RequestParameters['q']}</#if>";
			    	}
			    }
		});
	});
</script>